package pl.freetimetool.domain;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "worker")
public class Worker extends Account {


	private static final long serialVersionUID = -6840292122125125619L;
	
	@ManyToOne(targetEntity = Project.class)
	private Project project;

	public Project getProject() {
		return this.project;
	}

	public void setProject(final Project project) {
		this.project = project;
	}

	@ManyToOne(targetEntity = Manager.class)
	private Manager manager;

	public Manager getManager() {
		return this.manager;
	}

	public void setManager(final Manager manager) {
		this.manager = manager;
	}
}
